<?php
$page = 1;
	$lang = $this->arrParam['lang'];
	if(empty($lang)){
		$lang = 'vi';
	}else{
		$lang = $this->arrParam['lang'];
	}
	$urlNews 	= array('module'=>'news','controller'=>'index','action'=>'index','lang'=>$lang, 'page'=>$page);
	$linkNews 	= $this->view->url($urlNews,'news');
	
	$tblNews = new Zendvn_Models_NewsItem(); 
	$news = $tblNews->listItem($view->arrParam,array('task'=>'special')); 
?>
<div class="box mar-bottom-20 group3">
                        <div class="hot-news width-100">
                        <?php if(count($news) >0) {
                        	$item = $news[0];
                        	$cutTring 	= new Zendvn_File_CutTring();
                        	
							$title 		= $item['name'];
							$title 		= str_replace("\\"," ",$title);
							$alt		= $item['name'];
							if(!empty($item['alt_seo'])) $alt = $item['alt_seo'];
							$alt 		= str_replace("\\"," ",$alt);
												
							$summary 	= $item['summary'];
					        $summary 	= str_replace("\\"," ",$summary);
							$summary 	= $cutTring->cutTring(100,$summary,null);
							
							if(!empty($item['picture'])){
							    $linkImg	= FILES_URL . '/news/images450x450/' . $item['picture'];
							    $picture 	= '<img title="'. $title .'" src="'. $linkImg .'"  alt="'.$alt.'" />';
							}else{
							    $linkImg	= $this->imgUrl . '/no-image.jpg';
							    $picture 	= '<img title="'. $title .'" src="'. $linkImg .'"  alt="'.$alt.'" />';
							}
							$urlOptions = array(
												'module'=>'default',
												'controller'=>'index',
												'action'=>'detail',
												'title'=>$item['alias'],
												'id'=>$item['id'],
					                   			'lang'=>$lang);
							
					        $linkDetail = $view->url($urlOptions,'news-detail');
					        unset($news[0]);
                        ?>
                            <div class="title-hot-news bag-main"><p>Bạn cần biết</p></div>
                            <div class="list">
                                <!-----Mon an 1------>
                                <div class="row-list mar-top-15">
                                    <div style="margin-top: 10px; color: #cfbf9d">
                                        <h3>
                                            <a href="<?php echo $linkDetail?>" title="<?php echo $title?>">
                                            <?php echo $title?>
                                            </a>
                                        </h3>
                                    </div>
                                    <div class="bor-img width-100">
                                        <a href="<?php echo $linkDetail?>"><?php echo $picture?></a>
                                    </div>
                                    <div class="clear"></div>
                                    <div class="desc width-100">
                                        <p><?php echo $summary?></p>
                                    </div>
                                </div>
                                <!-----Mon an 1------>
                            </div>
                            
                            
                            <div class="line-solid"></div>
                            <ul class="list-news-hot">
                            <?php if(count($news) >0) foreach ($news as $key=>$value){
                            	$title 		= $value['name'];
                            	
                            	$urlOptions = array(
												'module'=>'news',
												'controller'=>'index',
												'action'=>'detail',
												'title'=>$value['alias'],
												'id'=>$value['id'],
					                   			'lang'=>$lang);
                            	$linkDetail = $view->url($urlOptions,'news-detail');
                            ?>
                              <li>
                                    <span class="point"></span>
                                    <a href="<?php echo $linkDetail?>"><?php echo $title;?></a>
                              </li>
                             
                              <?php } // end foreach?>
                          </ul>
                         <?php } //end if?> 
                         <div class="clear"></div>
                        </div>
                    </div>